<?php
/**
 * Created by PhpStorm.
 * User: Zhoujinda
 * Date: 2016/8/8
 * Time: 15:43
 */
namespace Webview\Controller;

use Admin\Api\MemberApi;
use Shop\Api\MemberConfigApi;
use Ucenter\Api\UserGroupApi;
use Ucenter\Api\UserMemberApi;
use Uclient\Api\UserApi;

class InviteController extends WebViewController{
    public function index(){
        $this->assignTitle('邀请有奖');

        $map = ['uid'=>$this->uid];

        $result = apiCall(MemberConfigApi::GET_INFO,[$map]);

        if($result['status']){
            $idcode = $result['info']['idcode'];
        }else{
            exit($result['info']);
        }


        $this->assign('idcode',$idcode);

        $this->display();
    }
}